<template>
    <div class="oneDetail" v-if="queryId">
        <Detail></Detail>
    </div>
    <div class="all" v-else>
        <AllDetail></AllDetail>
    </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import Detail from '@/components/member/order/detail/index.vue'
import AllDetail from '@/components/member/order/allDetail/index.vue'

let $route = useRoute();

let queryId = $route.query.id

</script>

<style scoped lang="scss">
div {
    width: 100%;
    margin: 10px 0 0 10px;
}

.all {
    width: 100%;
    height: 100%;
}
</style>